//
//  typedef.hpp
//  learnC++
//
//  Created by apple on 2018/5/24.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#ifndef typedef_hpp
#define typedef_hpp

#include <stdio.h>
#include <iostream>



//一般以_t结尾表明是类型
typedef int speed_t;
typedef long miles_t;
typedef std::vector<std::pair<std::string, int> > pairlist_t;

//c++ 11特性  与上面的相等
using distance_t = double;

void test_typedef();

//使用typedefs更简单的代码维护例如：
typedef int testScore_t;
testScore_t GradeTest();


//更改->只需将typedef short studentID_t更改为typedef long studentID_t


#endif /* typedef_hpp */
